import { Component, OnInit } from '@angular/core';
import { BladeService } from "../../../shared/blade.service";
import {BladeData} from '../../../shared/blade/blade-data';
import { StausExperListComponent } from "./staus-exper-list/staus-exper-list.component";
import { Observable } from "rxjs/Observable";


@Component({
  selector: 'app-staus-exper',
  templateUrl: './staus-exper.component.html',
  styleUrls: ['./staus-exper.component.css'],
  providers: [BladeService]
})
export class StausExperComponent implements OnInit {

  constructor(public bladeService: BladeService) { }

  ngOnInit() {
    this.createStausExperListBlade()
  }
   /**
   * 创建状态判断弹出层
   *
   *
   * @memberof DicComponent
   */
  createStausExperListBlade() {
    let data: BladeData = new BladeData();
    data.id = "stausExperList";
    data.title = "状态判断";
    data.isClosingDisabled = true;
    let stausExperListBlade = this.bladeService.createBlade(StausExperListComponent, data);
    this.bladeService.showBlade(stausExperListBlade);
  }
   /**
   * 是否可以离开
   *
   *
   * @memberof DicComponent
   */
  canDeactivate(): boolean | Observable<boolean> | Promise<boolean> {
    return true;
  }

}



// WEBPACK FOOTER //
// ./src/app/module/basic/staus-exper/staus-exper.component.ts
